<!DOCTYPE html>
<html lang="en">
<head>
    {% load bootstrap3 %}      <!-- 加载bootstrap3应用  -->
    {% bootstrap_css %}        <!-- 加载CSS文件  -->
    {% bootstrap_javascript%}  <!-- 加载JavaScript文件  -->
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <a class="navbar-brand" href="/login_success/">发布会管理系统</a>
        </div>
        <div id="navbar" class="collapse navbar-collapse">
          <ul class="nav navbar-nav">
            <li class="active"><a href="#">发布会</a></li>
            <li><a href="/guest_manage/">嘉宾</a></li>
          </ul>
          <ul class="nav navbar-nav navbar-right">
           <li><a href="#">{{user}}</a></li>
           <li><a href="/logout/">退出</a></li>
         </ul>
        </div><!--/.nav-collapse -->
      </div>
    </nav>
    <!-- 搜索表单  -->
    <div class="page-header" style="padding-top: 25px;">
        <div id="navbar" class="navbar-collapse collapse">
          <form class="navbar-form" method="get" action="/search_name/">
            <div class="form-group">
              <input name="name" type="text" placeholder="名称" class="form-control">
            </div>
            <button type="submit" class="btn btn-success">搜索</button>
          </form>
        </div>
      </div>
    <div class="row" style="padding-top: 80px;">
        <div class="col-md-6">
          <table class="table table-striped">
            <thead>
              <tr>
                <th>id</th>
                <th>名称</th>
                <th>状态</th>
                <th>地址</th>
                <th>时间</th>
              </tr>
            </thead>
            <tbody>
              {% for event in events %}
                <tr>
                  <td>{{ event.id }}</td>
                  <td>{{ event.name }}</td>
                  <td>{{ event.status }}</td>
                  <td>{{ event.address }}</td>
                  <td>{{ event.start_time }}</td>
                </tr>
              {% endfor %}
            </tbody>
          <table class="table table-striped">
              <thead>
              <tr>
              <th>id</th>
              <th>名称</th>
              <th>状态</th>
              <th>地址</th>
               <th>时间</th>
                  <th>签到</th>
              </tr>
              </thead>
              <tbody>
              <tr>
              <td>{{ event.id}}</td>
              <td>{{event.name}}</td>
              <td>{{ event.status}}</td>
              <td>{{event.address}}</td>
              <td>{{event.start_time }}</td>
              <td><a href="/sign_index/{{event.id}}}" target="{{event.id }}_blank">点击签到</a> </td>
              </tr>
              </tbody>
          </table>
          </table>
        </div>
    </div>
</body>
</html>